import request from "@/utils/request";

// 查询批次物料产品关系追溯列表
export function listBarcodeMaterial(query) {
  return request({
    url: "/ems/barcodeMaterial/list",
    method: "get",
    params: query,
  });
}

// 查询批次物料产品关系追溯详细
export function getBarcodeMaterial(po) {
  return request({
    url: "/ems/barcodeMaterial/" + po,
    method: "get",
  });
}

// 新增批次物料产品关系追溯
export function addBarcodeMaterial(data) {
  return request({
    url: "/ems/barcodeMaterial",
    method: "post",
    data: data,
  });
}

// 修改批次物料产品关系追溯
export function updateBarcodeMaterial(data) {
  return request({
    url: "/ems/barcodeMaterial",
    method: "put",
    data: data,
  });
}

// 删除批次物料产品关系追溯
export function delBarcodeMaterial(po) {
  return request({
    url: "/ems/barcodeMaterial/" + po,
    method: "delete",
  });
}

// 导出批次物料产品关系追溯
export function exportBarcodeMaterial(query) {
  return request({
    url: "/ems/barcodeMaterial/export",
    method: "get",
    params: query,
  });
}
